package com.stu.covid.business.mapper;

import com.stu.covid.business.entity.Student;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface StudentMapper extends Mapper<Student> {

    List<Student> list(Student student);

    Integer count(Student student);

    @Select("select * from t_student where user_id = #{value}")
    Student selectByUserId(Integer userId);

}